<html>
<head>
    <title>SunBlog博客系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" href="/css/style.css">
    <!-- 轮播图 -->
    <link href="https://cdn.bootcdn.net/ajax/libs/Swiper/6.7.0/swiper-bundle.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/Swiper/6.7.0/swiper-bundle.min.js"></script>

</head>
<body>
<style>


</style>
<nav class="navbar navbar-default">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">SunBlog博客系统</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <#--<ul class="nav navbar-nav">
                <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
                <li><a href="#">Link</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>-->
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="/index.html">
                        <span class="glyphicon glyphicon-home" aria-hidden="true"></span>
                        首页
                    </a>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">编程技术 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">后端开发</a></li>
                        <li><a href="#">Android开发</a></li>
                        <li><a href="#">前端开发</a></li>
                        <#--<li role="separator" class="divider"></li>
                        <li><a href="#">Separated link</a></li>-->
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">推荐站点 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="https://v3.bootcss.com/">Bootstrap中文网</a></li>
                        <li><a href="https://www.bootcdn.cn/">BootCDN</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container">
    <div class="row">
        <div class="col-md-8">
            <#-- 轮播图 -->
            <div id="swiper" class="swiper-container">
                <div class="swiper-wrapper">
                    <#list 1..3 as i>
                    <div class="swiper-slide">
                        <img src="/img/banner-${i}.jpg" alt="">
                    </div>
                    </#list>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
                <!-- Add Arrows -->
                <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div>
            </div>


            <#-- 文章列表 -->
            <#list 1..10 as n>
            <div class="article">
                <div class="title ellipsis">
                    <a href="/" >Java 反射机制详解 - 动态代理/泛型跳过</a>
                </div>
                <div class="intro ellipsis">反射机制是在运行状态中，对于任意一个类，都能够知道这个类的所有属性和方法；反射机制是在运行状态中，对于任意一个类，都能够知道这个类的所有属性和方法；反射机制是在运行状态中，对于任意一个类，都能够知道这个类的所有属性和方法；对于任意一个对象，都能够调用它的任意一个方法和属性；这种动态获取的信息以及动态调用对象的方法的功能称为Java语言的反射机制。</div>
                <div class="mate">
                    <span class="time">
                        <i class="glyphicon glyphicon-time"></i>
                        2011-11-11
                    </span>
                    <span class="view">
                        <i class="glyphicon glyphicon-eye-open"></i>
                        浏览(3280)
                    </span>
                    <span class="comment">
                        <i class="glyphicon glyphicon-comment"></i>
                        评论(862)
                    </span>
                </div>
                <div class="bar"></div>
            </div>
            </#list>
            <#--分页按钮-->
            <#import "inc/paginator.ftl" as page >
            <@page.paginator 50 ,9 ,20,"orange";num,text>
                <a href="?p=${num}" target="_self">${text}</a>
            </@page.paginator>
            <#--<#import "inc/paging.ftl" as paging >
            <@paging.paging 50,6,10;num,text>
                <a href="?p=${num}" >${text}</a>
            </@paging.paging>-->

        </div>
        <div class="col-md-4">
            <div class="panel panel-blog">
                <div class="panel-heading">
                    <span class="glyphicon glyphicon-home icon" aria-hidden="true"></span>
                    个人信息</div>
                <div class="panel-body">
                    Panel content
                </div>
            </div>
            <div class="panel panel-blog">
                <div class="panel-heading">
                    <span class="glyphicon glyphicon-fire icon" aria-hidden="true"></span>
                    热门推荐</div>
                <div class="panel-body">
                    Panel content
                </div>
            </div>
            <div class="panel panel-blog">
                <div class="panel-heading">
                    <span class="glyphicon glyphicon-tags icon" aria-hidden="true"></span>
                    标签云</div>
                <div class="panel-body">
                    <#list 1..10 as n>
                    <a class="blog-tag" href="/">标签${n}</a>
                    </#list>
                </div>
            </div>
        </div>
    </div>
</div>




<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script>
    var swiper = new Swiper('.swiper-container', {
        slidesPerView: 1,
        spaceBetween: 30,
        loop: true,
        autoplay:true,
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
    $(function () {
        var swiper=$('#swiper');
        $(window).on('resize',function () {
            swiper.height(swiper.width()/2.33);
        }).trigger('resize');
    })
</script>
</body>
</html>